package com.site.service;

import com.site.dao.CaseDao;
import com.site.entity.CaseEntity;

import java.sql.SQLException;
import java.util.List;

public class CaseService {
    CaseDao dao;
    public CaseService() throws ClassNotFoundException, SQLException{
        dao=new CaseDao();
    }

    public List<CaseEntity> getAll() throws SQLException{
        return dao.getAll();
    }
}
